﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, c,kq;
            Console.WriteLine("nhap so thu 1");
            a = int.Parse(Console.ReadLine());
            Console.WriteLine("nhap so thu 2");
            b = int.Parse(Console.ReadLine());
            Console.WriteLine();
            Console.WriteLine("1 cong");
            Console.WriteLine("2 tru");
            Console.WriteLine("3 nhan");
            Console.WriteLine("4 chia");
            Console.WriteLine("ban hay nhap 1 so tuong ung voi phep tinh ban muon thuc hien");
            c = int.Parse(Console.ReadLine());
            switch (c)
            {
                case 1:
                    kq = a + b;
                    Console.WriteLine(a + " + " + b + " = " + kq);
                    break;
                case 2:
                    //kq = a - b;
                    Console.WriteLine(a-b);
                    break;
                case 3:
                    kq = a * b;
                    Console.WriteLine(kq);
                    break;
                case 4:
                    kq = a / b;
                    Console.WriteLine(kq);
                    break;

                default: Console.WriteLine("khong tim thay phep toan ban muon thuc hien");
                    break;
                   
            } 
            Console.ReadLine();
        }
    }
}
